# -*- coding: utf-8 -*-
from __future__ import unicode_literals

import os

from .parser import Parser


def _read_text(_path):
    content = ''
    if os.path.isfile(_path):
        with open(_path, 'r') as _f:
            content = _f.read()
    return content

def get_default_theme():
    default_css = os.path.join(os.path.dirname(__file__), 'default.css')
    return _read_text(default_css)

def get_default_action():
    default_action = os.path.join(os.path.dirname(__file__), 'default.js')
    return _read_text(default_action)